<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>v-for遍历对象</title>
    <script src="../js/vue.js"></script>
</head>
<body>
<div id="app">
    <ul>
        <li v-for="(value, key) in person">{{key}}--->{{value}}</li>
    </ul>
</div>
</body>
<script>
    //view model
    new Vue({
        el: '#app',
        data: {
            person: {
                id: 1,
                name: 'zhangsan',
                age: 18,
                desc: 'good boy!'
            }
        }
    });
    // 注意，遍历的时候key在后面
</script>
</html>
